package cn.edu.ujs.coor.repository.organization;

import cn.edu.ujs.coor.model.Organization;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 组织dao
 *
 * @author 柳曾雄
 * @date 2018-08-31
 */
@Repository
public interface OrganizationRepository extends JpaRepository<Organization, String>, JpaSpecificationExecutor<Organization> {

    /**
     * 根据名称查找
     * @param name
     * @return
     */
    List<Organization> findByName (String name);
}
